package cn.db101.api.complex.utils

import cn.hutool.core.lang.Snowflake
import cn.hutool.core.util.IdUtil

/**
 * @author zooy
 * @since 2024/6/3-11:44
 */
object ObjectUtils {

    var snowflake: Snowflake = IdUtil.createSnowflake(12, 31)

    fun getId(): Long {
        return snowflake.nextId()
    }

}
